﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MaterPage/Site.Master" AutoEventWireup="true" CodeBehind="ChildPage.aspx.cs" Inherits="Js_Study.Pages.IframeDialog.ChildPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <input type="button" id="btn_1" value="Write ReturnValue" />

    <script type="text/javascript">

        $("#btn_1").click(function () {
            //chrome
            if (window.opener == null) {
                window.parent.window.fid.setResult("1111");
                window.parent.window.fid.closeDialog();
            }
                //ie
            else {
                window.parent.window.fid.setResult("1111");
                window.parent.window.fid.closeDialog();
            }
        })


    </script>
</asp:Content>
